package com.yuxi.controller.manager;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import com.yuxi.pubInter.exception.SkException;
import com.yuxi.pubInter.IBaseService;
import com.yuxi.pubInter.RestfulController;
import com.yuxi.dto.HonorDTO;
import com.yuxi.dto.HonorPageDTO;
import com.yuxi.modelExt.HonorExt;
import com.yuxi.searchExt.HonorSearchExt;
import com.yuxi.service.IHonorService;
import com.yuxi.vo.HonorDetailVO;
import com.yuxi.vo.HonorListVO;
import com.yuxi.vo.HonorDomainVO;
import com.yuxi.vo.HonorDetailDomainVO;

import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import com.yuxi.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:18
*    @description HonorController      荣誉
*/
@Api(tags = "后台管理系统-荣誉相关", description = "荣誉相关接口")
@RestController(value ="honorRestfulController")
@RequestMapping("/manager/honor/")
@Validated
public class HonorController extends ApiManageController<HonorDTO,HonorPageDTO,HonorExt, HonorSearchExt,HonorDomainVO,HonorDetailDomainVO,HonorDetailVO,HonorListVO,String> {

	@Resource(name = "honorService")
	private IHonorService honorService;



	@Override
	public IBaseService<HonorExt, HonorSearchExt,String> getBaseService() throws SkException {
		return honorService;
	}

	@Override
	public String getBaseRoute() {
		return "/manager/honor/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "荣誉";
	}



	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(honor.h_id) as countNum");
		return totalMapSet;
	}


}